package com.hairline.bean.vo;


import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class WxOrderInfolVO {

    String consignee;
    String address;
    Date addTime;
    String orderSn;
    BigDecimal actualPrice;
    String mobile;
    String orderStatusText;
    BigDecimal goodsPrice;
    BigDecimal couponPrice;
    Integer id;
    BigDecimal freightPrice;
    WxOrderHandleOptionVO handleOption;

    public void setOrderStatusText(Short orderStatus) {
        if (orderStatus == 101) {
            this.orderStatusText = "未付款";
        } else if (orderStatus == 102) {
            this.orderStatusText = "用户取消";
        } else if (orderStatus == 103) {
            this.orderStatusText = "系统取消";
        } else if (orderStatus == 201) {
            this.orderStatusText = "已付款";
        } else if (orderStatus == 202) {
            this.orderStatusText = "申请退款";
        } else if (orderStatus == 203) {
            this.orderStatusText = "已退款";
        } else if (orderStatus == 301) {
            this.orderStatusText = "已发货";
        } else if (orderStatus == 401) {
            this.orderStatusText = "已收货";
        } else if (orderStatus == 402) {
            this.orderStatusText = "系统收货";
        }
    }
}
